import Vue from 'vue'
import App from './App'
import router from './router'

// 应用echarts
import echarts from 'echarts'

import '../node_modules/echarts/map/js/province/qinghai.js' // 引入青海地图数据

// 引用md5插件
import md5 from 'js-md5'

// element-ui的全部组件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 引入富文本组件
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

// 引入cookies的常用操作
import { setCookie, getCookie, delCookie } from './utils/cookie.js'

// eslint-disable-next-line camelcase
import { post, get, get_from, up_excel } from './utils/serveice'
Vue.prototype.$echarts = echarts
Vue.use(VueQuillEditor)
Vue.prototype.$delCookie = delCookie
Vue.prototype.$setCookie = setCookie
Vue.prototype.$getCookie = getCookie
Vue.prototype.$get = get
// eslint-disable-next-line camelcase
Vue.prototype.$get_from = get_from
// eslint-disable-next-line camelcase
Vue.prototype.$up_excel = up_excel
Vue.prototype.$post = post

// 将md5绑定到全局
Vue.prototype.$md5 = md5 // element-ui的css
Vue.use(ElementUI)

/* eslint-disable */
new Vue({
  el: "#app",
  router,
  components: {
    App
  },
  template: "<App/>"
});
